package com.woniuxy.classdeans.service.impl;

import com.woniuxy.classdeans.mapper.TeamMasterMapper;
import com.woniuxy.classdeans.service.TeamMasterService;
import com.woniuxy.commons.entity.wyh.TeamMaster;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author wangyanhui
 * @date 2020/7/22 - 12:39
 */
@Service
public class TeamMasterServiceImpl implements TeamMasterService {
    @Autowired
    private TeamMasterMapper teamMasterMapper;

    /**
     * 新增班主任
     * @param teamMaster
     * @return
     */
    @Override
    public int addTeamMasert(TeamMaster teamMaster) {
        return teamMasterMapper.addTeamMasert(teamMaster);
    }

    @Override
    public void delByTmId(Integer tmId) {
        teamMasterMapper.delByTmId(tmId);
    }
}
